package com.sne.monitor.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

import java.time.LocalDateTime;

/**
 * 执行日志
 * @author fanghh
 * @date 2020/12/11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "MonitorTimeTaskt对象", description = "定时任务")
public class MonitorTimeTaskLog {

    @Id
    @ApiModelProperty(value = "任务记录id")
    private Long id;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "任务分组")
    private String taskGroup;

    @ApiModelProperty(value = "调用方法")
    private String taskFunc;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "结束时间")
    private Long excuteTime;

    @ApiModelProperty(value = "执行信息")
    private String message;

    @ApiModelProperty(value = "执行状态")
    private String state;

    @ApiModelProperty(value = "异常信息")
    private  String exceptionInfo;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "是否删除")
    private Boolean deleted;

}
